package com.jkoss.wine.shop.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;


/**
 * 
 * 
 * @Author Jason
 * @Version 1.0, 2018-10-02
 * @See
 * @Since com.jkoss.wine.shop.entity
 * @Description: TODO
 */
@TableName("shop_accounts")
public class ShopAccounts extends Model<ShopAccounts> {

    private static final long serialVersionUID = 1L;

    @TableId("account_id")
    private String accountId;
    @TableField("shop_id")
    private String shopId;
    /**
     * 对应的店铺员工账号
     */
    @TableField("employee_id")
    private String employeeId;
    /**
     * 账号
     */
    @TableField("account_num")
    private String accountNum;
    /**
     * 密码
     */
    @TableField("account_pwd")
    private String accountPwd;
    /**
     * 对应的角色 如店员，经理，管理员等等，可以是自定义
     */
    @TableField("roler_id")
    private String rolerId;
    /**
     * 对应的权限字符串
     */
    @TableField("powerStr")
    private String powerStr;
    /**
     * 账号状态 0正常 1停用
     */
    @TableField("account_state")
    private Integer accountState;
    @TableField("add_time")
    private Date addTime;
    @TableField("operator")
    private String operator;
    @TableField("del")
    private Integer del;


    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getAccountNum() {
        return accountNum;
    }

    public void setAccountNum(String accountNum) {
        this.accountNum = accountNum;
    }

    public String getAccountPwd() {
        return accountPwd;
    }

    public void setAccountPwd(String accountPwd) {
        this.accountPwd = accountPwd;
    }

    public String getRolerId() {
        return rolerId;
    }

    public void setRolerId(String rolerId) {
        this.rolerId = rolerId;
    }

    public String getPowerStr() {
        return powerStr;
    }

    public void setPowerStr(String powerStr) {
        this.powerStr = powerStr;
    }

    public Integer getAccountState() {
        return accountState;
    }

    public void setAccountState(Integer accountState) {
        this.accountState = accountState;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.accountId;
    }

    @Override
    public String toString() {
        return "ShopAccounts{" +
        ", accountId=" + accountId +
        ", shopId=" + shopId +
        ", employeeId=" + employeeId +
        ", accountNum=" + accountNum +
        ", accountPwd=" + accountPwd +
        ", rolerId=" + rolerId +
        ", powerStr=" + powerStr +
        ", accountState=" + accountState +
        ", addTime=" + addTime +
        ", operator=" + operator +
        ", del=" + del +
        "}";
    }
}
